package com.rt.easyjava.base.biz1.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

@Data
@ApiModel("数据导入实体")
@NoArgsConstructor
@AllArgsConstructor
public class ImportBizData implements Serializable {

    @ApiModelProperty(value = "sheet编号,为空时默认赋值为0")
    private Integer sheetNum = 0;

    @ApiModelProperty(value = "起始数据行数：从第几行开始读取数据", required = true)
    private Integer startRow;

    @ApiModelProperty("起始数据列数：从第几列开始读取数据,为空时赋默认值0")
    private Integer startColumn = 0;

    @ApiModelProperty(value = "数据库表名称", required = true)
    private String tableName;

    @ApiModelProperty(value = "数据库列名：表格中每一列对应到哪个数据库字段；注意顺序对应", required = true)
    private List<String> dbColumnName;

    @ApiModelProperty(value = "发生异常是否提交，默认为false:不提交")
    private boolean commitOnException = false;

}
